package test.time;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Moment_time {
	public   static   Date   strToDate(String   strDate)   {   
        Date   dt   =   null;   
        try   {   
                dt   =   new   SimpleDateFormat("yyyyMMddHHmmss").parse(strDate);   
        }   catch   (Exception e)   {   
           
        }   
        return   dt;   
} 
	public static void main(String[] args) {
		String strDate = "2004-08-13";
		SimpleDateFormat sDateFormat = new SimpleDateFormat("yyyy-MM-dd");
		try {
			Date sDate = sDateFormat.parse(strDate);
			//System.out.print(sDate);
		} catch (ParseException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		
		//String nowtime=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());
		String nowtime=new SimpleDateFormat("yyyyMMddHHmmss").format(new Date());
		long ld=1147945995651L;
		Date date=new Date(ld);
      // Date d1=new Date();
	//d1.getTime();
		//String mill=System.currentTimeMillis()+"";
	//System.out.println("nowTime=");
	//System.out.println("shijian="+new Moment_time().strToDate("20060519000000").getTime());
    System.out.println(nowtime+"   "+date);
	}

}
